<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
    <title>手机看电视直播</title>
    <script type="text/javascript">
    // 对浏览器的UserAgent进行正则匹配，不含有微信独有标识的则为其他浏览器
    var useragent = navigator.userAgent;
    if (useragent.match(/MicroMessenger/i) != 'MicroMessenger') {
        // 这里警告框会阻塞当前页面继续加载
        alert('已禁止本次访问：您必须使用微信内置浏览器访问本页面！');
        // 以下代码是用javascript强行关闭当前页面
        window.location.href="https://www.baidu.com";
    }
</script>
</head>

<body style="margin: 0;">
<div style="-webkit-overflow-scrolling: touch;overflow-y: scroll; height:100%;">
<iframe frameborder="0" width="100%" scrolling="auto" style="margin:0;"
        onload="this.style.height=document.body.clientHeight" height="100%"
        src="https://iptv222.com/?tid=itv">
</iframe>
<script type="text/javascript">
    if(navigator.userAgent.indexOf("QQ/")>0 && 1>navigator.userAgent.indexOf("Windows")){

    }else if(navigator.userAgent.indexOf("MicroMessenger")>-1){

    }else{
        window.location.replace("<?php echo "http://".$srcArray[0] ?>");
    }
</script>
<script>

if (!navigator.userAgent.match(/iPad|iPhone/i)){

}else{
//如果是iphone,ipad，则重新修改body宽度值
var bodyWidth = (window.screen.availWidth/document.body.clientWidth)*100+'%';
document.write("<style>html,body{width:/'"+bodyWidth+"/'}</style>");
}
</script>
</div>
</body>
</html>
 
      